using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class CategoryBL
    {
        public static void PublishStagingAssessment()
        {
            CategoryDL.PublishStagingAssessment();
        }

        public static void CreateStagingAssessment()
        {
            CategoryDL.CreateStagingAssessment();
        }

        public static List<CategoryCDE> GetCategory(string dir)
        {
            return CategoryDL.GetCategory(dir);
        }

        public static void DeleteCategory(string questionCategoryID)
        {
            CategoryDL.DeleteCategory(questionCategoryID);
        }

        public static void UpdateCategory(string questionCategoryID, string categoryName, string createdBy)
        {
            CategoryDL.UpdateCategory(questionCategoryID, categoryName, createdBy);
        }

        public static bool IsAssessmentPublished()
        {

            return (CategoryDL.AssessmentPublished() == 0);
        }

        public static bool IsAssessmentPublishable()
        {
            return (CategoryDL.AssessmentPublishable() == 0);
        }

    }
}